<template>
    <div class="top">
      <img src="../assets/index.jpg" alt="">
    </div>
    <div class="main">
      <a-steps style="margin:20px auto">
        <a-step description="填写相关信息">
      填写信息
      <template #icon>
       <icon-select-all />
      </template>
    </a-step>
    <a-step description="评委在线审批">
      评委审批
      <template #icon>
        <icon-loading/>
      </template>
    </a-step>
    <a-step description="在官网查询结果">
      查询结果
      <template #icon>
        <icon-thumb-up/>
      </template>
    </a-step>
  </a-steps>

      <div class="cnt">
        <div class="notice">
          <div class="head">
            大赛通知
          </div>
          <div class="item" v-for="item in list[0]" :key="item?.id" @click="into(item.id)">
            <div class="title">
              {{ item?.text.substring(1, item?.text.indexOf('\n')) }}
            </div>
            <div class="time">{{ item?.time.substring(0, item.time.indexOf('T')) }}</div>
          </div>


        </div>
        <div class="desc" style="background-color: #ffffff">
          <div class="head">
            最新动态
          </div>
          <div class="item">
            <div class="title">大赛时间安排 <span style="color: #C0C4CC;font-size: 14px;font-weight: 900"> >>> </span>
            </div>

            <div style="sheight: 50px;">小挑：3月11 - 4月13
              <div class="icon">
                <button @click="router.push('/submit')">进入</button>
              </div>
            </div>
            <div class="tips" style="margin-left: 10px">

              <el-icon>
                <Bell/>
              </el-icon>
              请在比赛时间内提交作品，审核结束后可在个人信息查看
            </div>
          </div>

        </div>
      </div>
    </div>
</template>

<script setup>
import {useRouter} from "vue-router";
import {reactive, onMounted, inject} from "vue";

const axios = inject("$axios")
const list = reactive([[]])
const router = useRouter()




</script>

<style scoped lang="less">


.top {
  width: 100%;
  background-image: url("../assets/bc.png");
  background-size: 100% 100%;
  height: auto;
  padding: 0;
  text-align: center;

  img {
    object-fit: contain;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
  }
}


@media screen and (min-width: 480px) {
  .proceed {
    margin: 50px;
  }

  .proceed1 {
    display: none;

  }

  .main {
    width: 80%;
    margin: 10px auto;
    background-color: transparent;

    .cnt {
      width: 100%;
      margin: 10px auto;
      display: flex;
      justify-content: space-between;

      .head {
        width: 100%;
        height: 50px;
        font-size: 20px;
        text-align: center;
        letter-spacing: 3px;
        font-weight: 900;
        color: #ffffff;
        line-height: 50px;
      }

      .notice {
        border-radius: 10px;
        overflow: hidden;
        padding-bottom: 20px;
        background-color: #ffffff;
        width: 47%;
        height: 250px;
        box-sizing: border-box;

        .head {
          background: radial-gradient(178px at 1.8% 4%, rgb(162, 208, 254) 0.1%, rgba(193, 94, 245, 0.73) 100.2%);
        }

        .item {
          width: 100%;
          display: flex;
          justify-content: space-between;
          flex-wrap: nowrap;
          padding: 10px;
          box-sizing: border-box;
          font-size: 14px;

          .title {
            width: 80%;
            display: -webkit-box;
            /* 3. 控制行数*/
            -webkit-line-clamp: 1;
            /* 4. 设置子元素的排列方式  垂直排列*/
            -webkit-box-orient: vertical;
            /* 5.溢出隐藏 */
            overflow: hidden;
            font-size: 14px;
            color: #606266
          }

          .time {
            font-size: 12px;
            color: #C0C4CC;
            background-color: #ffffff;

          }

        }
      }

      .desc {
        width: 47%;
        height: 250px;
        background-color: #ffffff;
        border-radius: 10px;
        overflow: hidden;

        .item {
          display: flex;
          flex-direction: column;
          text-indent: 1em;
          font-size: 14px;
          line-height: 25px;
          color: #606266;
          background-color: #ffffff;

          div {
            display: flex;
            align-items: center;

            .icon {
              height: 40px;
              width: 70px;
              margin-left: 40%;
            }
          }
        }

        .head {
          background: linear-gradient(135deg, #c850c0, #4158d0);
        }

        .title {
          color: #303133;
          font-size: 16px;
          font-width: 700;
          margin: 10px 0;
        }

        .tips {
          color: #A8ABB2;
          margin: 20px 0;

        }

      }
    }
  }
}

@media screen and (max-width: 390px) {
  .item .icon {
    height: 40px;
    width: 70px;
    margin-left: 30% !important;
  }
}
</style>